import request from '@/request/request.js'

//老师所带班级查询所有
export function teacher_class(userId){
    return request({
        url:'/groupTwo/teacher/getTeacherClass/'+userId,
        method:'get',
    })
}
//通过学生id查看最近考试情况
export function getStudentExam(studentId){
    return request({
        url:'/groupTwo/teacher/getStudentExam/'+studentId,
        method:'get',
    })
}
//根据老师id查看老师所带班级数量,以及每个班有多少个学生。
export function getTeacherClassInfo(teacherId){
    return request({
        url:'/groupTwo/teacher/getTeacherClassInfo/'+teacherId,
        method:'get',
    })
}
//通过用户编号查询所带班级一共有多少场考试，以及共有多少道题目
export function getTeacherExamInfo(userId){
    return request({
        url:'/groupTwo/teacher/getTeacherExamInfo/',
        method:'get',
        params:{userId:userId}
    })
}

//精准查询日考班级信息
export function findClassByStage(data){
    return request({
        url:'/groupTwo/class/findClassByStage/',
        method:'post',
        data
    })
}
//导出学生日考成绩信息
export function downloadDay(){
    return request({
        url:'/groupTwo/class/downloadDay/',
        method:'get',
        responseType:'blob',
    })
}